package actiuniTest;

import static org.junit.Assert.*;

import javax.swing.JMenuItem;

import org.junit.Test;

import actiuni.AddBookmark;
import actiuni.Command;

public class AddBookmarkTest {
	@Test
	public void testInstance(){
		Command c = new AddBookmark();
		assertEquals("Should be AddBookmark","AddBookmark",c.toString());
		assertTrue("Should be instance of JMenuItem",c instanceof JMenuItem);
		testTitle();
	}
	
	@Test
	public void testTitle(){
		JMenuItem c = new AddBookmark("AddBookmarks");
		assertEquals("Name Should be AddBookmarks","AddBookmarks",c.getText());
	}
}
